package com.func.boom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.func.boom.dao.dto.RegisterDto;
import com.func.boom.entity.TSysUser;
import com.func.boom.utils.ResultEntity;
import com.func.boom.utils.jwt.Authentication;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Yulei
 * @date 2020-09-10 15:23:37
 * @desc
 */
public interface UserService extends IService<TSysUser> {

    /**
     * 登录
     * @param authentication
     * @return
     */
    ResultEntity<?> login(Authentication authentication);

    /**
     * 注册账号
     * @param user
     * @return
     */
    ResultEntity<?> register(RegisterDto user);

    /**
     * 获取验证码
     * @param response
     * @param type
     */
    void getCaptcha(HttpServletResponse response, String phone, Integer type);

    /**
     * 根据条件查询全部用户信息
     * @return
     */
    List<TSysUser> getUserList(TSysUser TSysUser);

}
